#!/bin/bash

echo "🚀 开始 Vue3 项目初始化..."

# 1. 清理操作
echo "📁 执行清理操作..."
rm -rf ./src/assets
rm -rf ./src/views
rm -rf ./src/stores
rm -rf ./src/components

# 2. 创建目录
echo "📂 创建目录结构..."
mkdir -p src/types
mkdir -p src/stores
mkdir -p src/cmpts
mkdir -p src/utils
mkdir -p src/api
mkdir -p src/views

# 3. 创建文件
echo "📄 创建文件..."
touch src/types/public.d.ts
touch src/style.scss
touch src/views/IndexView.vue
touch src/stores/index.ts
touch src/stores/app.ts
touch src/utils/safe-storage.ts
touch .env.development
touch .env.production
touch .prettierrc.json

echo "✅ 初始化完成！"